Optimal. Leaf size=139 \[ \frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a \sin (e+f x)+a}}+\frac{4 c^3 \cos (e+f x) \log (\sin (e+f x)+1)}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.28084, antiderivative size = 139, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {2740, 2737, 2667, 31} \[ \frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a \sin (e+f x)+a}}+\frac{4 c^3 \cos (e+f x) \log (\sin (e+f x)+1)}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a \sin (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2740
Rule 2737
Rule 2667
Rule 31
Rubi steps
\begin{align*} \int \frac{(c-c \sin (e+f x))^{5/2}}{\sqrt{a+a \sin (e+f x)}} \, dx &=\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+(2 c) \int \frac{(c-c \sin (e+f x))^{3/2}}{\sqrt{a+a \sin (e+f x)}} \, dx\\ &=\frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+\left (4 c^2\right ) \int \frac{\sqrt{c-c \sin (e+f x)}}{\sqrt{a+a \sin (e+f x)}} \, dx\\ &=\frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+\frac{\left (4 a c^3 \cos (e+f x)\right ) \int \frac{\cos (e+f x)}{a+a \sin (e+f x)} \, dx}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}+\frac{\left (4 c^3 \cos (e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,a \sin (e+f x)\right )}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=\frac{4 c^3 \cos (e+f x) \log (1+\sin (e+f x))}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}+\frac{2 c^2 \cos (e+f x) \sqrt{c-c \sin (e+f x)}}{f \sqrt{a+a \sin (e+f x)}}+\frac{c \cos (e+f x) (c-c \sin (e+f x))^{3/2}}{2 f \sqrt{a+a \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.561192, size = 136, normalized size = 0.98 \[ -\frac{c^2 (\sin (e+f x)-1)^2 \sqrt{c-c \sin (e+f x)} \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) \left (12 \sin (e+f x)+\cos (2 (e+f x))-32 \log \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )\right )}{4 f \sqrt{a (\sin (e+f x)+1)} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.198, size = 320, normalized size = 2.3 \begin{align*} -{\frac{1}{2\,f \left ( \left ( \cos \left ( fx+e \right ) \right ) ^{3}+ \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) -3\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}+2\,\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) -2\,\cos \left ( fx+e \right ) -4\,\sin \left ( fx+e \right ) +4 \right ) } \left ( \left ( \cos \left ( fx+e \right ) \right ) ^{3}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) +5\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}+8\,\cos \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) +6\,\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) -16\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -8\,\sin \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) +16\,\sin \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -\cos \left ( fx+e \right ) -8\,\ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) -5\,\sin \left ( fx+e \right ) +16\,\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) -\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -5 \right ) \left ( -c \left ( -1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{5}{2}}}{\frac{1}{\sqrt{a \left ( 1+\sin \left ( fx+e \right ) \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}{\sqrt{a \sin \left (f x + e\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (c^{2} \cos \left (f x + e\right )^{2} + 2 \, c^{2} \sin \left (f x + e\right ) - 2 \, c^{2}\right )} \sqrt{-c \sin \left (f x + e\right ) + c}}{\sqrt{a \sin \left (f x + e\right ) + a}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}{\sqrt{a \sin \left (f x + e\right ) + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]